package android.cmpe451.group7.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Entity class for places.
 */
public class Comment implements Serializable {

	private static final long serialVersionUID = -3321356183696542360L;

	private long commentID;
	private User user;
	private Date date;
	private String comment;
	private String tag;

	public long getCommentID() {
		return commentID;
	}

	public void setCommentID(long commentID) {
		this.commentID = commentID;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		if (date != null)
			this.date = new Date(date.getTime());
		else
			this.date = null;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}
}
